package com.gibs.peixunapi.model;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.OneToOne;

@EqualsAndHashCode(callSuper = true)
@Entity
@Data
//@Table(name = "video")
public class Video extends BaseModel {	//视频
	private String name;     //名称
	@OneToOne(cascade = CascadeType.REFRESH)
	private FileInfo coverImage;     //封面图id
	@OneToOne(cascade = CascadeType.REFRESH)
	private FileInfo url;     //视频地址
	private Integer duration;     //时长
	private String type;     //类型
	private String recommend;     //简介


}

